dynamicOutputAs

fun <TOutput> dynamicOutputAs(part: UIMessagePart.DynamicToolUI, serializer: KSerializer<TOutput>): TOutput?